home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 61 |m>.Newsg|roups: a|
|00000060| 6c 74 2e 6d 73 64 6f 73 | 2e 70 72 6f 67 72 61 6d |lt.msdos|.program|
|00000070| 6d 65 72 2c 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 0a |mer,comp|.lang.c.|
|00000080| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 54 77 6f |Subject:| Re: Two|
|00000090| 20 43 20 70 72 6f 62 6c | 65 6d 73 0a 44 61 74 65 | C probl|ems.Date|
|000000a0| 3a 20 38 20 4a 61 6e 20 | 31 39 39 36 20 31 34 3a |: 8 Jan |1996 14:|
|000000b0| 32 39 3a 31 37 20 47 4d | 54 0a 4f 72 67 61 6e 69 |29:17 GM|T.Organi|
|000000c0| 7a 61 74 69 6f 6e 3a 20 | 44 69 67 69 74 61 6c 20 |zation: |Digital |
|000000d0| 45 71 75 69 70 6d 65 6e | 74 20 43 6f 72 70 6f 72 |Equipmen|t Corpor|
|000000e0| 61 74 69 6f 6e 0a 4d 65 | 73 73 61 67 65 2d 49 44 |ation.Me|ssage-ID|
|000000f0| 3a 20 3c 34 63 72 39 6e | 74 24 61 71 40 6e 6e 74 |: <4cr9n|t$aq@nnt|
|00000100| 70 64 32 2e 63 78 6f 2e | 64 65 63 2e 63 6f 6d 3e |pd2.cxo.|dec.com>|
|00000110| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 63 |.Referen|ces: <4c|
|00000120| 6f 6a 6e 6e 24 72 67 64 | 40 6c 75 67 62 2e 6c 61 |ojnn$rgd|@lugb.la|
|00000130| 74 72 6f 62 65 2e 65 64 | 75 2e 61 75 3e 0a 4e 4e |trobe.ed|u.au>.NN|
|00000140| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000150| 20 70 65 6f 31 30 31 32 | 5f 70 6f 72 74 31 2e 70 | peo1012|_port1.p|
|00000160| 65 6f 2e 64 65 63 2e 63 | 6f 6d 0a 4d 69 6d 65 2d |eo.dec.c|om.Mime-|
|00000170| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 43 6f 6e |Version:| 1.0.Con|
|00000180| 74 65 6e 74 2d 54 79 70 | 65 3a 20 74 65 78 74 2f |tent-Typ|e: text/|
|00000190| 70 6c 61 69 6e 3b 20 63 | 68 61 72 73 65 74 3d 75 |plain; c|harset=u|
|000001a0| 73 2d 61 73 63 69 69 0a | 43 6f 6e 74 65 6e 74 2d |s-ascii.|Content-|
|000001b0| 54 72 61 6e 73 66 65 72 | 2d 45 6e 63 6f 64 69 6e |Transfer|-Encodin|
|000001c0| 67 3a 20 37 62 69 74 0a | 58 2d 4d 61 69 6c 65 72 |g: 7bit.|X-Mailer|
|000001d0| 3a 20 4d 6f 7a 69 6c 6c | 61 20 31 2e 32 4e 20 28 |: Mozill|a 1.2N (|
|000001e0| 57 69 6e 64 6f 77 73 3b | 20 49 3b 20 31 36 62 69 |Windows;| I; 16bi|
|000001f0| 74 29 0a 54 6f 3a 20 63 | 73 69 67 6a 62 40 6c 75 |t).To: c|sigjb@lu|
|00000200| 78 6f 72 2e 6c 61 74 72 | 6f 62 65 2e 65 64 75 2e |xor.latr|obe.edu.|
|00000210| 61 75 0a 0a 63 73 69 67 | 6a 62 40 6c 75 78 6f 72 |au..csig|jb@luxor|
|00000220| 2e 6c 61 74 72 6f 62 65 | 2e 65 64 75 2e 61 75 20 |.latrobe|.edu.au |
|00000230| 28 29 20 77 72 6f 74 65 | 3a 0a 3e 49 20 68 61 76 |() wrote|:.>I hav|
|00000240| 65 20 74 77 6f 20 43 20 | 70 72 6f 62 6c 65 6d 73 |e two C |problems|
|00000250| 2e 0a 3e 0a 3e 50 52 4f | 42 4c 45 4d 20 31 20 3a |..>.>PRO|BLEM 1 :|
|00000260| 0a 3e 0a 53 6e 69 70 2e | 2e 2e 2e 0a 0a 49 20 64 |.>.Snip.|.....I d|
|00000270| 69 64 6e 27 74 20 74 72 | 79 20 79 6f 75 72 20 70 |idn't tr|y your p|
|00000280| 72 6f 67 72 61 6d 2e 20 | 20 49 20 63 61 6e 27 74 |rogram. | I can't|
|00000290| 20 61 6e 73 77 65 72 20 | 71 75 65 73 74 69 6f 6e | answer |question|
|000002a0| 20 31 2c 20 62 75 74 20 | 49 20 63 61 6e 20 61 6e | 1, but |I can an|
|000002b0| 73 77 65 72 0a 71 75 65 | 73 74 69 6f 6e 20 32 2e |swer.que|stion 2.|
|000002c0| 0a 0a 3e 50 52 4f 42 4c | 45 4d 20 32 20 3a 0a 3e |..>PROBL|EM 2 :.>|
|000002d0| 0a 3e 63 6f 6e 73 74 20 | 65 73 63 61 70 65 3d 32 |.>const |escape=2|
|000002e0| 37 3b 0a 3e 63 6f 6e 73 | 74 20 63 72 3d 31 33 3b |7;.>cons|t cr=13;|
|000002f0| 0a 3e 63 6f 6e 73 74 20 | 62 73 3d 38 3b 0a 3e 0a |.>const |bs=8;.>.|
|00000300| 3e 77 68 69 6c 65 20 28 | 63 68 21 3d 63 72 29 0a |>while (|ch!=cr).|
|00000310| 3e 7b 0a 3e 20 20 20 20 | 20 2e 0a 3e 20 20 20 20 |>{.> | ..> |
|00000320| 20 2e 0a 3e 20 20 20 20 | 20 2e 0a 3e 7d 0a 3e 0a | ..> | ..>}.>.|
|00000330| 3e 77 68 69 6c 65 20 28 | 63 68 21 3d 65 73 63 61 |>while (|ch!=esca|
|00000340| 70 65 29 0a 3e 7b 0a 3e | 20 20 20 20 20 2e 0a 3e |pe).>{.>| ..>|
|00000350| 20 20 20 20 20 2e 0a 3e | 20 20 20 20 20 2e 0a 3e | ..>| ..>|
|00000360| 7d 0a 3e 0a 3e 49 66 20 | 49 20 72 65 70 6c 61 63 |}.>.>If |I replac|
|00000370| 65 20 74 68 65 20 32 37 | 20 77 69 74 68 20 5c 32 |e the 27| with \2|
|00000380| 37 27 20 6f 72 20 74 68 | 65 20 31 33 20 77 69 74 |7' or th|e 13 wit|
|00000390| 68 20 27 5c 31 33 27 20 | 74 68 65 6e 20 74 68 65 |h '\13' |then the|
|000003a0| 73 65 20 6c 6f 6f 70 73 | 20 64 6f 6e 27 74 0a 3e |se loops| don't.>|
|000003b0| 77 6f 72 6b 20 69 2e 65 | 2e 20 61 6e 20 69 6e 66 |work i.e|. an inf|
|000003c0| 69 6e 69 74 65 20 6c 6f | 6f 70 20 72 65 73 75 6c |inite lo|op resul|
|000003d0| 74 73 2e 20 57 48 59 3f | 0a 3e 0a 3e 41 6c 73 6f |ts. WHY?|.>.>Also|
|000003e0| 20 69 66 20 49 20 77 61 | 6e 74 20 74 6f 20 64 6f | if I wa|nt to do|
|000003f0| 20 73 6f 6d 74 68 69 6e | 67 20 6c 69 6b 65 20 74 | somthin|g like t|
|00000400| 68 69 73 20 3a 20 70 75 | 74 73 28 22 5c 32 34 20 |his : pu|ts("\24 |
|00000410| 5c 32 35 22 29 3b 20 77 | 68 69 63 68 20 73 68 6f |\25"); w|hich sho|
|00000420| 75 6c 64 0a 3e 70 72 69 | 6e 74 20 74 68 65 20 75 |uld.>pri|nt the u|
|00000430| 70 20 61 6e 64 20 64 6f | 77 6e 20 61 72 72 6f 77 |p and do|wn arrow|
|00000440| 73 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |s on the| screen |
|00000450| 28 41 53 43 49 49 20 32 | 34 20 61 6e 64 20 32 35 |(ASCII 2|4 and 25|
|00000460| 29 2c 20 62 75 74 20 6e | 6f 2c 20 69 74 0a 3e 70 |), but n|o, it.>p|
|00000470| 72 69 6e 74 73 20 73 6f | 6d 65 20 6f 74 68 65 72 |rints so|me other|
|00000480| 20 41 53 43 49 49 20 63 | 68 61 72 61 63 74 65 72 | ASCII c|haracter|
|00000490| 73 2e 20 41 73 20 66 61 | 72 20 61 73 20 49 20 63 |s. As fa|r as I c|
|000004a0| 61 6e 20 74 65 6c 6c 20 | 43 20 68 61 73 20 69 74 |an tell |C has it|
|000004b0| 73 20 6f 77 6e 0a 3e 75 | 6e 69 71 75 65 20 63 68 |s own.>u|nique ch|
|000004c0| 61 72 61 63 74 65 72 20 | 74 61 62 6c 65 2c 20 61 |aracter |table, a|
|000004d0| 74 20 6c 65 61 73 74 20 | 66 6f 72 20 74 68 65 20 |t least |for the |
|000004e0| 63 6f 6e 74 72 6f 6c 20 | 63 68 61 72 61 63 74 65 |control |characte|
|000004f0| 72 73 2e 20 57 48 59 3f | 0a 0a 43 20 69 73 20 6e |rs. WHY?|..C is n|
|00000500| 6f 74 20 75 73 69 6e 67 | 20 61 20 64 69 66 66 65 |ot using| a diffe|
|00000510| 72 65 6e 74 20 63 68 61 | 72 61 63 74 65 72 20 74 |rent cha|racter t|
|00000520| 61 62 6c 65 2e 20 20 54 | 68 65 20 66 6f 72 6d 61 |able. T|he forma|
|00000530| 74 20 73 74 72 69 6e 67 | 20 79 6f 75 20 61 72 65 |t string| you are|
|00000540| 20 0a 75 73 69 6e 67 20 | 69 73 20 75 73 69 6e 67 | .using |is using|
|00000550| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 72 61 64 | a diffe|rent rad|
|00000560| 69 78 2e 20 20 41 63 63 | 6f 72 64 69 6e 67 20 74 |ix. Acc|ording t|
|00000570| 6f 20 6d 79 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |o my doc|umentati|
|00000580| 6f 6e 2c 20 69 66 20 79 | 6f 75 0a 73 70 65 63 69 |on, if y|ou.speci|
|00000590| 66 79 20 61 6e 20 65 73 | 63 61 70 65 20 73 65 71 |fy an es|cape seq|
|000005a0| 75 65 6e 63 65 20 69 6e | 20 74 68 65 20 66 6f 72 |uence in| the for|
|000005b0| 6d 61 74 20 5c 6e 6e 6e | 20 28 77 68 65 72 65 20 |mat \nnn| (where |
|000005c0| 6e 6e 6e 20 69 73 20 61 | 20 31 20 74 6f 20 33 20 |nnn is a| 1 to 3 |
|000005d0| 0a 64 69 67 69 74 20 6e | 75 6d 62 65 72 29 20 74 |.digit n|umber) t|
|000005e0| 68 65 20 6e 75 6d 62 65 | 72 20 69 73 20 74 61 6b |he numbe|r is tak|
|000005f0| 65 6e 20 61 73 20 61 6e | 20 4f 43 54 41 4c 20 6e |en as an| OCTAL n|
|00000600| 75 6d 62 65 72 2e 20 20 | 4f 43 54 41 4c 20 31 33 |umber. |OCTAL 13|
|00000610| 20 3d 20 64 65 63 69 6d | 61 6c 20 0a 31 31 20 61 | = decim|al .11 a|
|00000620| 6e 64 20 4f 43 54 41 4c | 20 32 37 20 3d 20 64 65 |nd OCTAL| 27 = de|
|00000630| 63 69 6d 61 6c 20 32 33 | 2e 20 20 59 6f 75 72 20 |cimal 23|. Your |
|00000640| 70 72 6f 67 72 61 6d 20 | 69 73 20 6c 6f 6f 6b 69 |program |is looki|
|00000650| 6e 67 20 66 6f 72 20 74 | 68 65 20 77 72 6f 6e 67 |ng for t|he wrong|
|00000660| 20 0a 76 61 6c 75 65 73 | 2e 20 20 59 6f 75 20 63 | .values|. You c|
|00000670| 61 6e 20 61 6c 73 6f 20 | 73 70 65 63 69 66 79 20 |an also |specify |
|00000680| 61 20 6e 75 6d 62 65 72 | 20 75 73 69 6e 67 20 68 |a number| using h|
|00000690| 65 78 61 64 65 63 69 6d | 61 6c 20 6e 6f 74 61 74 |exadecim|al notat|
|000006a0| 69 6f 6e 20 62 79 20 0a | 75 73 69 6e 67 20 74 68 |ion by .|using th|
|000006b0| 65 20 5c 78 6e 6e 20 65 | 73 63 61 70 65 20 73 65 |e \xnn e|scape se|
|000006c0| 71 75 65 6e 63 65 20 28 | 77 68 65 72 65 20 6e 6e |quence (|where nn|
|000006d0| 20 69 73 20 31 20 6f 72 | 20 32 20 68 65 78 20 64 | is 1 or| 2 hex d|
|000006e0| 69 67 69 74 73 29 2e 0a | 0a 0a 0a 3e 0a 3e 53 6f |igits)..|...>.>So|
|000006f0| 6d 65 74 69 6d 65 73 20 | 49 20 77 6f 6e 64 65 72 |metimes |I wonder|
|00000700| 20 77 68 65 74 68 65 72 | 20 73 6f 6d 65 20 6f 6e | whether| some on|
|00000710| 65 20 6e 65 65 64 73 20 | 74 6f 20 67 6f 20 62 61 |e needs |to go ba|
|00000720| 63 6b 20 61 6e 20 72 65 | 77 72 69 74 65 20 74 68 |ck an re|write th|
|00000730| 65 20 64 61 6d 6e 0a 3e | 6c 61 6e 67 75 61 67 65 |e damn.>|language|
|00000740| 20 73 6f 20 74 68 61 74 | 20 69 74 20 77 6f 72 6b | so that| it work|
|00000750| 73 20 73 65 6e 73 69 62 | 6c 79 20 61 6e 64 20 70 |s sensib|ly and p|
|00000760| 72 65 64 69 63 74 61 62 | 6c 79 20 6c 69 6b 65 20 |redictab|ly like |
|00000770| 50 61 73 63 61 6c 20 63 | 61 6e 20 62 65 0a 3e 72 |Pascal c|an be.>r|
|00000780| 65 6c 69 65 64 20 75 70 | 6f 6e 20 74 6f 20 64 6f |elied up|on to do|
|00000790| 2e 0a 0a 54 68 65 20 6c | 61 6e 67 75 61 67 65 20 |...The l|anguage |
|000007a0| 68 61 73 20 62 65 65 6e | 20 72 65 77 72 69 74 74 |has been| rewritt|
|000007b0| 65 6e 2e 20 20 54 68 65 | 20 72 65 77 72 69 74 65 |en. The| rewrite|
|000007c0| 20 69 73 20 63 61 6c 6c | 65 64 20 43 2b 2b 2e 20 | is call|ed C++. |
|000007d0| 20 54 68 65 20 43 2b 2b | 20 0a 6c 61 6e 67 75 61 | The C++| .langua|
|000007e0| 67 65 20 73 74 69 6c 6c | 20 61 6c 6c 6f 77 73 20 |ge still| allows |
|000007f0| 79 6f 75 20 74 6f 20 62 | 75 69 6c 64 20 62 72 6f |you to b|uild bro|
|00000800| 6b 65 6e 20 70 72 6f 67 | 72 61 6d 73 20 75 73 69 |ken prog|rams usi|
|00000810| 6e 67 20 74 68 65 20 43 | 20 73 79 6e 74 61 78 2c |ng the C| syntax,|
|00000820| 20 0a 62 75 74 20 69 74 | 20 69 73 20 6d 6f 72 65 | .but it| is more|
|00000830| 20 73 74 72 6f 6e 67 6c | 79 20 74 79 70 65 64 20 | strongl|y typed |
|00000840| 74 68 61 6e 20 70 6c 61 | 69 6e 20 43 20 61 6e 64 |than pla|in C and|
|00000850| 20 61 64 64 73 20 6e 65 | 77 20 66 65 61 74 75 72 | adds ne|w featur|
|00000860| 65 73 20 74 68 61 74 20 | 0a 61 6c 6c 6f 77 20 79 |es that |.allow y|
|00000870| 6f 75 20 74 6f 20 61 76 | 6f 69 64 20 6d 61 6e 79 |ou to av|oid many|
|00000880| 20 70 72 6f 62 6c 65 6d | 73 20 61 6c 74 6f 67 65 | problem|s altoge|
|00000890| 74 68 65 72 20 28 66 6f | 72 20 65 78 61 6d 70 6c |ther (fo|r exampl|
|000008a0| 65 20 74 68 65 20 3c 3c | 20 6f 75 74 70 75 74 0a |e the <<| output.|
|000008b0| 6f 70 65 72 61 74 6f 72 | 20 66 6f 72 20 74 68 65 |operator| for the|
|000008c0| 20 49 2f 4f 20 63 6c 61 | 73 73 65 73 20 73 69 6d | I/O cla|sses sim|
|000008d0| 70 6c 69 66 69 65 73 20 | 66 6f 72 6d 61 74 74 65 |plifies |formatte|
|000008e0| 64 20 6f 75 74 70 75 74 | 20 61 6e 64 20 6c 65 74 |d output| and let|
|000008f0| 73 20 79 6f 75 20 67 65 | 74 20 0a 61 77 61 79 20 |s you ge|t .away |
|00000900| 66 72 6f 6d 20 70 72 69 | 6e 74 66 28 29 20 61 6e |from pri|ntf() an|
|00000910| 64 20 66 6f 72 6d 61 74 | 20 73 74 72 69 6e 67 73 |d format| strings|
|00000920| 29 2e 0a 0a 0a 0a 2d 2d | 20 0a 2a 2a 2a 2a 2a 2a |).....--| .******|
|00000930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 42 72 69 61 6e 20 |********|*.Brian |
|00000960| 48 69 62 62 65 72 74 20 | 20 62 5f 68 69 62 62 65 |Hibbert | b_hibbe|
|00000970| 72 74 40 63 73 63 33 32 | 2e 65 6e 65 74 2e 64 65 |rt@csc32|.enet.de|
|00000980| 63 2e 63 6f 6d 0a 44 69 | 67 69 74 61 6c 20 45 71 |c.com.Di|gital Eq|
|00000990| 75 69 70 6d 65 6e 74 20 | 43 6f 72 70 6f 72 61 74 |uipment |Corporat|
|000009a0| 69 6f 6e 0a 41 6c 6c 20 | 6f 70 69 6e 69 6f 6e 73 |ion.All |opinions|
|000009b0| 20 65 78 70 72 65 73 73 | 65 64 20 61 72 65 20 6d | express|ed are m|
|000009c0| 79 20 6f 77 6e 20 61 6e | 64 20 73 68 6f 75 6c 64 |y own an|d should|
|000009d0| 0a 6e 6f 74 20 62 65 20 | 61 73 73 75 6d 65 64 20 |.not be |assumed |
|000009e0| 74 6f 20 62 65 20 74 68 | 65 20 6f 70 69 6e 69 6f |to be th|e opinio|
|000009f0| 6e 20 6f 66 20 6d 79 20 | 65 6d 70 6c 6f 79 65 72 |n of my |employer|
|00000a00| 0a 0a 0a | |... | |
+--------+-------------------------+-------------------------+--------+--------+